<template>
  <div>
    <el-container>
        
        <el-header>
            <img src="../../../public/logo.png" alt=""/>
            <div >
              <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
            </div>
        </el-header>
    <el-container>
    <el-aside >
      <el-col :span="12" >
        <span :style="{fontSize:'20px',lineHeight:'80px',fontWeight:'1000',}">易租号后台管理系统</span>
      <el-menu
        mode="vertical"
        default-active="1"
        class="el-menu-vertical-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        unique-opened
        router>
        <el-menu-item index="1" :route="{path:'/home/data'}">
          <i class="el-icon-s-home"></i>
          <span slot="title">首页</span>
        </el-menu-item>
        <el-submenu index="2">
          <template slot="title">
            <i class="el-icon-link"></i>
            <span>app管理</span> 
          </template>
          <el-menu-item-group>
            <el-menu-item index="2-1" :route="{path:'/home/banner'}">轮播图管理</el-menu-item>
            <el-menu-item index="2-2" :route="{path:'/home/plate'}">展示管理</el-menu-item>
          </el-menu-item-group>
        </el-submenu>

        <el-submenu index="3">
          <template slot="title">
            <i class="el-icon-s-grid"></i>
            <span>信息管理</span> 
          </template>
          <el-menu-item-group>
            <el-menu-item index="3-1" :route="{path:'/home/management'}" >账号管理</el-menu-item>
            <el-menu-item index="3-2" :route="{path:'/home/registration'}">租借管理</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        
      </el-menu>
      </el-col>
    </el-aside>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</el-container>
  </div>
</template>

<script>
export default {
    name:'MyHome',
    methods:{
      
    }
}
</script>

<style lang="less" scoped>
 .el-header, .el-footer {
    background-color: white;
    border-bottom: 1px solid #ccc;
    color: #333;
    text-align: center;
    line-height: 60px;
    img{
      float: left;
      height: 100%;
    }
    div{
        float: right;
        padding-top: 5px;

    }
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    .el-col{
      width: 100%;
    }
   
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    height: 93.5vh;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  


</style>